const { CleanWebpackPlugin } = require('clean-webpack-plugin') //删除掉上一个打包的文件
const { merge } = require('webpack-merge')
const commonConfig = require('./webpack.comm.config')

module.exports = merge(commonConfig, {
  // 当前模式是开发模式development
  //  node|development|production
  //  默认是production生产模式
  mode: "production",

  plugins: [
    new CleanWebpackPlugin(),

  ]
})